package cn.iocoder.yudao.module.call.controller.admin.tasknumber.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Schema(description = "管理后台 - 外呼名单新增/修改 Request VO")
@Data
@NoArgsConstructor
public class TaskNumberBatchSaveReqVO {

    @Schema(description = "任务ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "13108")
    @NotNull(message = "任务ID不能为空")
    private String taskId;

    private List<SaveData> dataList;

    @Data
    public static class SaveData {

        @Schema(description = "号码", requiredMode = Schema.RequiredMode.REQUIRED)
        @NotEmpty(message = "号码不能为空")
        private String number;

        @Schema(description = "来源", requiredMode = Schema.RequiredMode.REQUIRED)
        @NotEmpty(message = "来源不能为空")
        private String source;

        @Schema(description = "来源ID", example = "19837")
        private Long sourceId;

        @Schema(description = "被叫名称", example = "芋艿")
        private String sourceName;

        @Schema(description = "远端ID", example = "芋艿")
        private String remoteId;
    }

}